Ext.onReady(function() {
	var data1 = [ [ 'Image one', '/GetImage.php?id=1',new Date() ],
			[ 'Image Two', '/GetImage.php?id=2',new Date() ] ];
	var vstore = new Ext.data.ArrayStore({
		data : data1,
		fields : [ "name", "url","vdate" ]
	});
	var grid = new Ext.grid.EditorGridPanel({
		title : "列表",
		store : vstore,
		columns : [ {
			header : "名称",
			dataIndex : "name",
			editor:new Ext.form.TextField()
		},{
			header : "日期",
			dataIndex : "vdate",
			editor:new Ext.form.DateField(),
			renderer:function(v){
				return v.format("Y-m-d");
			}
		}, {
			header : "网址",
			dataIndex : "url",
			sortable : true,
			renderer:function(v){
				return v.link(v);
			}
		} ]
	});
	new Ext.Viewport({
		layout : "fit",
		items : grid
	});

});